import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib as mpl
import warnings
warnings.filterwarnings("ignore")
sns.set_style("white")
##########################################################################################
employment = pd.read_excel('unemployment.xlsx')
# sns.relplot(x='Period', y='Unemployed', hue='Gender', data=employment, height=7, aspect=2)
# plt.show()

insurance = pd.read_csv('insurance.csv')
#print(insurance.head(10))
# sns.relplot(x='bmi', y='charges', hue='smoker', data=insurance, height=8, aspect=1)
# plt.show()

# sns.relplot(x='Period', y='Unemployed', hue='Gender', col='Age', kind='line',
#             data=employment, height=7, aspect=.5)
# plt.show()

# sns.relplot(x='Period', y='Unemployed', hue='Gender', col='Age', kind='line',
#             data=employment, height=6, aspect=1, col_wrap=4, linewidth=2)
# plt.show()

sns.relplot(x='bmi', y='charges', hue='sex', col='sex', row='region', data=insurance, height=8, aspect=1)
plt.show()

sns.relplot(x='bmi', y='charges', hue='sex', col='sex', row='region',
            data=insurance, height=7, aspect=.6)
plt.show()

